package user

import (
	"gitee.com/saxon134/workflow/enum"
	"time"
)

const TBNUser = "user"

type TblUser struct {
	Id       int64       `orm:"" json:"id"`
	CreateAt *time.Time  `orm:"" json:"createAt"`
	Name     string      `orm:"varchar(30)" json:"name"`
	Account  string      `orm:"varchar(30)" json:"account"`
	Password string      `orm:"varchar(32)" json:"-"`
	Status   enum.Status `orm:"tinyint;comment:-1-禁用 1-可用" json:"status"`
	Roles    string      `orm:"tinyint;comment:角色，逗号隔开" json:"roles"`
}

func (m *TblUser) TableName() string {
	return TBNUser
}
